<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>216-修正模式.html</title>
</head>
<body>
	
</body>
<script>
	var str = "zxcVBNM 890 asdf 678";
	var reg = /[a-z]/;
	var reg1 = /[a-zA-Z]/g;
    var reg2 = /[a-z]/gi;//ignore

	console.log(str);
	console.log(reg.ignoreCase);
	console.log(reg.global);
	console.log(reg1.global);
	console.log(reg2.ignoreCase);
	console.log(str.replace(reg,"*"));
	console.log(str.replace(reg1,"*"));
	console.log(str.replace(reg2,"*"));
</script>
</html>